<div class="form_title">Search Payment</div>
<div id="<?php echo sfConfig::get('app_windows_payment_search_form_id')?>">
  <?php echo form_tag('payment/doSearch',array('id'=>'formPaymentSearch',))?>
    <?php echo $paymentSearchForm['_csrf_token']?>
    <table class="form">
      <tr>
        <th class="field">Payment#</th>
        <td class="field">
          <?php echo $paymentSearchForm['payment_type']?>
          <?php echo $paymentSearchForm['payment_number_from']?> - 
          <?php echo $paymentSearchForm['payment_number_to']?>
        </td>
      </tr>
      <tr>
        <th class="field">Payment Date</th>
        <td class="field">
          <?php echo $paymentSearchForm['payment_date_from']?> - 
          <?php echo $paymentSearchForm['payment_date_to']?>
        </td>
      </tr>
      <tr>
        <th class="field"><?php echo $paymentSearchForm['invoice_type']->renderLabel()?></th>
        <td class="field">
          <?php echo $paymentSearchForm['invoice_type']?>
          <?php echo $paymentSearchForm['invoice_id_from']->renderLabel()?>  
          <?php echo $paymentSearchForm['invoice_id_from']?>  
          <?php echo $paymentSearchForm['invoice_id_to']->renderLabel()?>
          <?php echo $paymentSearchForm['invoice_id_to']?>
        </td>
      </tr>
      <tr>
        <th class="field">Name</th>
        <td class="field"><?php echo $paymentSearchForm['customer_name']?>
          <div id="paymentShowVoidOnly">
          <?php echo $paymentSearchForm['show_void_only']->renderLabel()?>
          <?php echo $paymentSearchForm['show_void_only']?>
          </div>
        </td>
      </tr>
    </table>
    <center>
          <input type="submit" value="Search"/> | 
          <input type="reset" value="Reset"/>
    </center>
  </form>
</div>
<div id="<?php echo sfConfig::get('app_windows_payment_search_grid_id')?>">
</div>
<a href="#" id="ajPaymentShowGrid" style="display:none">Show Search Results</a>
</div>
<div id="<?php echo sfConfig::get('app_windows_payment_panel_id')?>" style="display:none;">
</div>

<script language="javascript">
  $(document).ready(
    function(){
      paymentSetupSearch();
    }
  );
</script>